package com.xzc.spring5;

/**
 * 使用有参数构造注入
 * @author 徐州城
 * @version 1.0
 */
public class Orders {
    //属性
    private String oname;
    private String address;
    //有参构造
    public Orders(String oname,String address){
        this.oname = oname;
        this.address = address;
    }

    public void testDemo(){
        System.out.println(this.oname);
        System.out.println(this.address);
    }
}

